<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"   
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Lab Assignments</title>
	<link rel="shortcut icon" href="images/favicon.ico" />
	<link rel="stylesheet" type="text/css" href="style.css" />
	<script type="text/javascript" src="jquery-1.6.2.js"></script>
	<script type="text/javascript" src="script404.js"></script>
</head>

<body>

<div id="banner">
	<img src="images/banner.png" />
			
	<%!	
		Cookie getCookieByName (Cookie[] cookies, String name) {
			for (Cookie cookie : cookies) {
				if (cookie.getName().equalsIgnoreCase(name)) {				
					return cookie;
				}
			}
			return null;
		}
    %>
    
    <%
    	Cookie user = getCookieByName(request.getCookies(), "user");
    	if (user != null) {
    		out.println ("<p>");
    		out.println("Hello " + user.getValue() + "! ");
    		out.println("<a href=\"logout.jsp\">Logout</a>");
    		out.println("</p>");
    	}
	%>
</div>

<div id="container">

